package com.coocaa.ops.plus.dashboard.v1.plugin.ftl;

import com.coocaa.ops.plus.core.base.BaseFtlAction;
import com.coocaa.ops.plus.core.base.annotation.MyAuth;
import com.coocaa.ops.plus.core.base.enums.MyRoleEnums;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * @author tangminghong
 * @date 2020-09-16
 */
@Controller
@RequestMapping("/myExtend")
public class PluginConfAction extends BaseFtlAction {

    @MyAuth(validAuth = true, hasRoles = {MyRoleEnums.ROLE_ADMIN})
    @RequestMapping(value = "/pluginConf")
    public ModelAndView aiPosterView(HttpServletRequest request) throws Exception {
        Map<String, Object> map = new HashMap<String, Object>(1);
        return renderView(request, "plugin/pluginConf", map);
    }
}
